cordova.define("cordova/plugin/readsmsplugin", 
  function(require, exports, module) {
    var exec = require("cordova/exec");
    var ReadSms = function() {};
    
    //-------------------------------------------------------------------
    ReadSms.prototype.read = function(params,successCallback, errorCallback) {
    
       if (typeof errorCallback != "function")  {
            console.log("ReadSms.read failure: failure parameter not a function");
            return
        }
    
        if (typeof successCallback != "function") {
            console.log("ReadSms.read failure: success callback parameter must be a function");
            return
        }
    	
        exec(successCallback, errorCallback, "ReadSms", "read", [params]);
        
    };
    
    var readSms = new ReadSms();
    module.exports = readSms;

});
